package Visitor;

public class Paragraph implements IDocument{

	String text ;
	
	public Paragraph(String s){
		text = s ;
	}
	
	@Override
	public boolean contains(String s) {
		return text.contains(s);
	}

	@Override
	public void Accept(IVisitor v) {
		v.visit(this);
	}

}
